<template>
  <div class="xinxi">
    <p class="carxin">车辆信息</p>
    <div>
      <div>
        <img src="../../../assets/dingdanxinxi/car.jpg" alt="" />
      </div>
      <div>
        <p>{{ carName==null? this.$store.state.carinfo.carName :carName}}</p>
        <p>
          <span>SUV</span>
          <i>|</i>
          <span>2.7自动</span>
          <i>|</i>
          <span>乘坐5人</span>
        </p>
      </div>
    </div>
  </div>
</template>
<style scoped lang="less">
.xinxi {
  width: 95%;
  margin: 0 auto;
  height: 2.61rem;
  background: white;
  margin-top: 0.2rem;
  padding-top: 0.26rem;
  border-radius: 0.08rem;
  .carxin {
    width: 100%;
    height: 0.5rem;
    font-size: 0.29rem;
    font-weight: 600;
    padding-left: 0.34rem;
    margin-bottom: 0.08rem;
  }
  div {
    width: 100%;
    height: 1.3rem;
    display: flex;
    div:nth-child(1) {
      width: 2.85rem;
      height: 100%;
      display: flex;
      justify-content: center;
      img {
        width: 2.2rem;
        height: 100%;
      }
    }
    div:nth-child(2) {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      p:nth-child(1) {
        width: 100%;
        font-size: 0.34rem;
        font-weight: 600;
      }
      p:nth-child(2) {
        span {
          font-size: 0.26rem;
          color: #999999;
          margin-right: 0.2rem;
          line-height: 0.41rem;
        }
        i {
          font-size: 0.27rem;
          color: #dddddd;
          margin-right: 0.2rem;
        }
      }
    }
  }
}
</style>
<script>
export default {
  props:{
    carName:null,
  }
}
</script>